package com.mnotice.message.informer;

import com.jayway.jsonpath.JsonPath;
import lombok.*;

@Getter
@Setter
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class JsonFormat {
    private String data;

    public String print(String jsonPath) {
        Object read = JsonPath.read(data, jsonPath);
        return read != null ? read.toString() : "None";
    }
}
